package com.yungu.swift.report.service.impl;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.model.admin.AdminReportParam;
import com.yungu.swift.report.dao.ReportUserActiveDayDao;
import com.yungu.swift.report.entity.ReportUserActiveDay;
import com.yungu.swift.report.service.UserActiveDayService;
import com.yungu.swift.utils.DateUtils;
import com.yungu.swift.utils.MapUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;

@Service
public class UserActiveDayServiceImpl implements UserActiveDayService {

    @Autowired
    private ReportUserActiveDayDao userActiveDayDao;

    @Override
    public ResponseData<List<ReportUserActiveDay>> queryIndex(AdminReportParam reportParam) {
        return ResponseData.buildSuccessResponse(userActiveDayDao.queryIndex(reportParam));
    }

    @Override
    public ResponseData<List<ReportUserActiveDay>> getActivityRateDayList(AdminReportParam reportParam) {
        return ResponseData.buildSuccessResponse(userActiveDayDao.getActivityRateDayList(reportParam));
    }
}
